package com.drcoffee.drcoffeemall.service;

import com.drcoffee.drcoffeemall.entry.Result;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.bind.annotation.RequestParam;

public interface AliPayService {

    String aliPay(String order_code);

    void alipayReturn(HttpServletRequest request, String out_trade_no, String trade_no, String total_amount, String timestamp, HttpServletResponse response);

    String alipayNotify(HttpServletRequest request, String out_trade_no, String trade_no, String total_amount, String gmt_payment);

    void aliRefund(@RequestParam String order_code);

}
